package com.example.rlw.mvpplugintest.utils;

import android.app.Activity;
import android.content.Intent;

/**
 * 描述：多媒体工具
 * Created by rlw on 2019/3/20.
 */
public class MediaUtils {
    /**
     * 打开图片
     *
     * @param activity
     */
    public static void openImage(Activity activity) {
        //访问图库
        Intent intent = new Intent();
        intent.setType("image/*");//可选择图片视频
        intent.setAction(Intent.ACTION_GET_CONTENT);
        activity.startActivityForResult(intent, 1001);
    }
}
